package com.jwd.avmanager.test;

import com.jwd.avmanager.util.DebugLogger;
import com.jwd.avmanager.util.JodaTimeUtil;

import java.time.Duration;
import java.time.Instant;
import java.util.Date;
import java.util.TimeZone;

public class test2 {
    public static void main(String[] args) {
//        // 创建两个 Date 对象
//        Date start = new Date();
//        Date end = JodaTimeUtil.str2Date("2024-01-16 10:30:00");
//        // 获取两个时间点之间的毫秒数
//        long difference = start.getTime() - end.getTime();
//        // 输出时间差
//        DebugLogger.debug(difference/1000);
        byte[] typeBytes = new byte[4];//4个字节
        typeBytes[0] = 1;
        typeBytes[1] = 0;
        typeBytes[2] = 0;
        typeBytes[3] = 1;
        int type = java.nio.ByteBuffer.wrap(typeBytes).getInt();
        System.out.println(type);
    }
}
